WebPExpress\SanityCheck A

Total Complexity 60
Dependencies 3
Dependents 9
Total lines 404
Lines of code 211
Logical lines of code 130
Comment lines 101
Methods 27
Properties 0

Methods 27

Method Rating Maintainability Complexity Lines of code
isOnMicrosoft()
A
57 8 17
absPathIsInDocRoot()
S
49 7 30
absPath()
S
63 3 11
isJSONArray()
S
64 3 9
filePathWithinOneOfTheseRoots()
S
65 3 9
isJSONObject()
S
64 3 9
noStreamWrappers()
S
67 2 8
absPathExistsAndIsDir()
S
68 2 7
noNUL()
S
68 2 7
pregMatch()
S
67 2 8
pathBeginsWith()
S
68 2 7
absPathMicrosoftStyle()
S
70 2 6
mustBeString()
S
70 2 6
noDirectoryTraversal()
S
67 2 8
absPathExistsAndIsFile()
S
68 2 7
notEmpty()
S
70 2 6
noControlChars()
S
67 2 8
absPathExists()
S
68 2 7
absPathExistsAndIsNotDir()
S
75 1 4
absPathExistsAndIsFileInDocRoot()
S
73 1 5
isFilePathWithinExistingDirPath()
S
72 1 5
pathDirectoryTraversalAllowed()
S
67 1 8
absPathInOneOfTheseRoots()
S
89 1 2
pathBeginsWithSymLinksExpanded()
S
75 1 4
path()
S
79 1 3
pathWithoutDirectoryTraversal()
S
71 1 6
fail()
S
75 1 4